From: Jasper St. Pierre Date: Wed, 4 Dec 2013 00:21:08 +0000 (-0500) Subject: messageTray: Only attempt to grab the summary box pointer after showing it X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3013 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c89af0cea430d4c5652d314d5aa0ee0937a41400;p=gnome-shell.git messageTray: Only attempt to grab the summary box pointer after showing it For mysterious reasons I'm not sure of myself, navigate_focus will only focus mapped actors. So, make sure the widget is showing before navigating to it. https://bugzilla.gnome.org/show_bug.cgi?id=709853 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index aa93640a6..4372c36f1 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -2809,13 +2809,13 @@ const MessageTray = new Lang.Class({ Lang.bind(this, this._onSourceDoneDisplayingContent)); this._summaryBoxPointer.bin.child = child; - this._grabHelper.grab({ actor: this._summaryBoxPointer.bin.child, - onUngrab: Lang.bind(this, this._onSummaryBoxPointerUngrabbed) }); - this._summaryBoxPointer.actor.opacity = 0; this._summaryBoxPointer.actor.show(); this._adjustSummaryBoxPointerPosition(); + this._grabHelper.grab({ actor: this._summaryBoxPointer.bin.child, + onUngrab: Lang.bind(this, this._onSummaryBoxPointerUngrabbed) }); + this._summaryBoxPointerState = State.SHOWING; this._summaryBoxPointer.show(BoxPointer.PopupAnimation.FULL, Lang.bind(this, function() { this._summaryBoxPointerState = State.SHOWN;